﻿@namespace BlazorComponent

<RadzenCard class="rz-p-0">
    <RadzenRow class="rz-border-info-light">
        <Button Text="Button1" OnClick="Button1Click" />
    </RadzenRow>
</RadzenCard>

@code {

    [Parameter]
    public string Name { get; set; }

    [Parameter]
    public EventCallback<CallbackDataModel> Button1CallbackChanged { get; set; }

    public async Task Button1Click()
    {
        CallbackDataModel callbackData = new CallbackDataModel
        {
            Name = this.Name,
        };
        await Button1CallbackChanged.InvokeAsync(callbackData);
    }

    // 定义事件
    public event Action<CallbackDataModel> Button1Callback;




}
